﻿#pragma once

#include <qdialog.h>
#include "ui_SetPositionModeDialogUi.h"


class SetPositionModeDialog : public QDialog
{
  Q_OBJECT

private:
  Ui_SetPositionModeDialog ui;

public:
  SetPositionModeDialog(QWidget* parent = Q_NULLPTR);
  ~SetPositionModeDialog();

public slots:
  int exec() override;
  void accept() override;

public:
  float getPosition();
  float getRate();
  float getAcceleration();

  //geter and seter
public:
  int getAccuracy();
  void setAccuracy(int accuracy);
  float getTurnTablePositionUpperLimit();
  void setTurnTablePositionUpperLimit(float turnTablePositionUpperLimit);
  float getTurnTablePositionLowerLimit();
  void setTurnTablePositionLowerLimit(float turnTablePositionLowerLimit);
  float getTurnTableRateUpperLimit();
  void setTurnTableRateUpperLimit(float turnTableRateUpperLimit);
  float getTurnTableRateLowerLimit();
  void setTurnTableRateLowerLimit(float turnTableRateLowerLimit);
  float getTurnTableAccelerationUpperLimit();
  void setTurnTableAccelerationUpperLimit(float  turnTableAccelerationUpperLimit);
  float getTurnTableAccelerationLowerLimit();
  void setTurnTableAccelerationLowerLimit(float turnTableAccelerationLowerLimit);
};
